package com.joymeter.data.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.joymeter.data.dao.ProjectInfoDao;
import com.joymeter.data.entity.ProjectInfo;
import com.joymeter.data.service.ProjectInfoService;
import org.springframework.stereotype.Service;

/**
 * @ClassName ProjectInfoServiceImpl
 * @Description TODO
 * 操作ProjectInfo表
 * @Author liang
 * @Date 2018/8/12 14:59
 * @Version 1.0
 **/
@Service
public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoDao, ProjectInfo> implements ProjectInfoService {
    @Override
    public ProjectInfo selectProjectInfoByProject(String project) {
        EntityWrapper<ProjectInfo> wrapper = new EntityWrapper<>();
        wrapper.eq("project",project);
         ProjectInfo projectInfo = selectOne(wrapper);
         return projectInfo ;
    }
}
